﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true" CodeBehind="edit_class.aspx.cs" Inherits="RC1.admin.edit_class" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 115px;
        }
        .style2
        {
            width: 115px;
            height: 30px;
        }
        .style3
        {
            height: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Stovna flokk</h3>
    <table style="width:100%;">
        <tr>
            <td class="style1">
                Flokk heitið</td>
            <td>
                <asp:TextBox ID="classNameTextBox" runat="server" >
                    </asp:TextBox> <span style="color:red;">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="classNameTextBox" 
                    ErrorMessage="Flokk skal hava eitt heitið"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Lýsing</td>
            <td>
                <asp:TextBox ID="descriptionTextBox" runat="server"></asp:TextBox> <span style="color:red;">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="descriptionTextBox" 
                    ErrorMessage="Flokk skal hava eina lýsing"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">Lærugrein</td>
            <td>
                <asp:DropDownList ID="subjectDropDownList" runat="server">
                </asp:DropDownList><span style="color:red;">*</span>
            </td>
        </tr>
        <tr>
            <td class="style2">Lærari</td>
            <td class="style3">
                <asp:DropDownList ID="teacherDropDownList" runat="server">
                </asp:DropDownList><span style="color:red;">*</span>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Dagfør" />
            </td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="Angra" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
